//
//  File.swift
//  ObserveTiming
//
//  Created by JY_NEW on 2021/10/30.
//

import Foundation

@dynamicMemberLookup
public struct Observer<OBType> {
    let ob: OBType
    public subscript(dynamicMember path: KeyPath<OBType, ObserveTiming>) -> ObserveRouter<OBType> {
        let timing = self.ob[keyPath: path]
        return ObserveRouter(ob: self.ob, timing: timing)
    }
}
